﻿/* ------------------------------------------------------------------------
* 【本类功能概述】
* 
* 创建人：
* 创建时间：
* 创建说明：
*
* 修改人： 
* 修改时间： 
* 修改说明：
* ------------------------------------------------------------------------
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace CodeGenerator.Utility
{
    public class Config
    {
        public static string NameSpace
        {
            get
            {
                return ConfigurationManager.AppSettings["NameSpace"].ToString();
            }
        }


        public static string BusinessEntitiesPath
        {
            get
            {
                return HttpContext.Current.Server.MapPath("~/" + ConfigurationManager.AppSettings["BusinessEntitiesPath"].ToString()).Replace("\\CodeGenerator\\", "\\");
            }
        }

        public static string DataAccessPath
        {
            get
            {
                return HttpContext.Current.Server.MapPath("~/" + ConfigurationManager.AppSettings["DataAccessPath"].ToString()).Replace("\\CodeGenerator\\", "\\");
            }
        }

        public static string BusinessLogicPath
        {
            get
            {
                return HttpContext.Current.Server.MapPath("~/" + ConfigurationManager.AppSettings["BusinessLogicPath"].ToString()).Replace("\\CodeGenerator\\", "\\");
            }
        }

        public static string BusinessLogicSuffix
        {
            get
            {
                return ConfigurationManager.AppSettings["BusinessLogicSuffix"].ToString();
            }
        }

        public static string BusinessEntitiesSuffix
        {
            get
            {
                return ConfigurationManager.AppSettings["BusinessEntitiesSuffix"].ToString();
            }
        }

        public static string DataAccessSuffix
        {
            get
            {
                return ConfigurationManager.AppSettings["DataAccessSuffix"].ToString();
            }
        }
        public static string DBContextName
        {
            get
            {
                return ConfigurationManager.AppSettings["DBContextName"].ToString() + ".cs";
            }
        }

    }
}